﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace loveMotorcade.web.Models
{
    public static class userC
    {
        public static Boolean isLogin {
            get { return HttpContext.Current.Session["user"] != null ? true : false; }
        }

        public static user LoginUser
        {
            get { return (user)HttpContext.Current.Session["user"];
            
            }
            set{
                HttpContext.Current.Session["user"] = value;   
            }
        
        }
        public static void LoginOut() {
            HttpContext.Current.Session.Remove("user");
        }
    }
}